{
    var User = /** @class */ (function () {
        function User(a, b) {
            this.name = a;
            this.age = b;
        }
        User.prototype.show = function () {
            return "".concat(this.name, "\u7684\u5E74\u9F84\u662F").concat(this.age);
        };
        return User;
    }());
    var hd = new User('后端人', 18);
    var xia = new User('xiasnn', 16);
    console.log(hd.show());
    console.log(xia.show());
    // users数组只能放User类型的元素
    var users = [];
    users.push(hd, xia);
    console.log(users);
}
